home *** CD-ROM | disk | FTP | other *** search
- Subject: Kudos and Q's
- Sent: 5/26/96 6:12 PM
- Received: 5/28/96 8:25 AM
- From: Brian Arnold, arnold@lumina.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Hi ODF types,
-
- I spent half a day re-implementing my diagram editor based on Container,
- and I'm happy to say I got farther faster than my previous ODF
- re-implementations ;-). Although I'd like to think I'm comfortable with
- ODF, I have to give kudos to ODF 1 for having good debug assertions that
- tell me what I'm doing wrong (sometimes even with recent d9/d11 code).
-
- Lesson/question: I tried in vain to find an authoritative answer to the
- question of how to construct a FW_Cursor from the documentation and
- examples, but all the examples use cursors that are in ODF, and my limited
- documentation search only told me about the Frame cursor handling method
- (which in the Container example is implemented in the View class), not
- anything about how to use FW_Cursor. I might not have searched hard
- enough.
-
- I guessed that the FW_Cursor constructor, which can default its "instance"
- parameter to NULL, doesn't really want NULL after all, and needs
- FW_gInstance. When I do this, it works and doesn't give me assertions. It
- would be nice if I don't supply an "instance" that it default to
- FW_gInstance.
-
- // would be nice if I didn't have to think about FW_gInstance
- FW_CCursor gBrowseCursor(kBrowseCursor, FW_gInstance);
-
- Lesson/question: I looked at the DU folder for SOM examples since I want my
- calculation engine wrapped with SOM (or at least I think I do) so that I
- can later turn it into a thread or separate process by replacing the SOM
- library.
-
- Several SOM-related issues come to mind (and forgive my ignorance, I'm
- trying to behave like a casual user, not a sprocket-head), and I realize
- this is slightly peripheral to ODF itself.
-
- The meta-question is: if I use SOM directly, will my source code be
- cross-platform compatible (I know it probably is for OS/2, but what about
- the $20,000 question, Windows95/NT?).
-
- The first more pragmatic question is: I don't really care about the "S",
- ".xh" and ".xih" files that are the output of the SOM compiler, do I? This
- is just stuff to placate the linker and bind my calls, right?
-
- The second more pragmatic question is: Metrowerks CW9 binds ".idl" with the
- "SOMObjects TS" CodeWarrior plugin, does this mean the Finance SOM example
- could be reworked so it doesn't need the MPW make file (nb, the MPW
- 'script' file)?
-
- - Brian
-
- ---------------------------------------------------------------
- Brian Arnold arnold@lumina.com
- Director of Software Development
- Lumina Decision Systems, Inc. http://www.lumina.com/
-
-